<template>
  <div class="borderBox">
    <el-row>
      <el-col :span="18" :offset="3">
        <el-table :data="datas" style="width: 100%">
          <el-table-column type="index" width="50"></el-table-column>
          <el-table-column prop="name" label="属性名称"></el-table-column>
          <el-table-column prop="desc" label="描述"></el-table-column>
          <el-table-column prop="type" label="类型"></el-table-column>
          <el-table-column prop="remark" label="备注"></el-table-column>
        </el-table>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-chart-pie</div>
          <dve-chart-pie
            width="100%"
            height="300px"
            tooltip-visible="true"
            legend-visible="true"
            dimension="日期"
            metrics="访问用户"
            activeTimeGap="4000"
            legendLimit="10"
            hoverAnimation="false"
            radius="100"
            offsetY="150"
            roseType="radius"
            level="1/1,1/2;1/3,1/4,1/5,1/6"
            limitShowNum="2"
          ></dve-chart-pie>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      datas: [
        {
          name: "chartData",
          desc: "图表数据",
          type: "Object",
          remark: "{cloumns:[],rows:[]}"
        },
        {
          name: "dataType",
          desc: "数据类型",
          type: "String",
          remark: "KMB, normal, percent"
        },
        {
          name: "legendLimit",
          desc: "legend显示数量限制",
          type: "String",
          remark: ""
        },
        {
          name: "selectedMode",
          desc: "选中模式",
          type: "String",
          remark: "默认false"
        },
        {
          name: "hoverAnimation",
          desc: "是否开启 hover 在扇区上的放大动画效果",
          type: "String",
          remark: ""
        },
        {
          name: "radius",
          desc: "饼图半径	",
          type: "String",
          remark: ""
        },
        {
          name: "offsetY",
          desc: "纵向偏移量",
          type: "String",
          remark: ""
        },
        {
          name: "digit",
          desc: "percent数据类型的小数位",
          type: "String",
          remark: "默认2"
        },
        {
          name: "roseType",
          desc: "显示为南丁格尔玫瑰图",
          type: "String",
          remark: "默认不展示为南丁格尔玫瑰图，可设置为'radius', 'area'"
        },
        {
          name: "label",
          desc: "饼图图形上的文本标签	",
          type: "Object",
          remark: ""
        },
        {
          name: "labelLine",
          desc: "标签的视觉引导线样式	",
          type: "Object",
          remark: ""
        },
        {
          name: "itemStyle",
          desc: "图形样式	",
          type: "Object",
          remark: ""
        },
        {
          name: "level",
          desc: "多圆饼图时设置	",
          type: "String",
          remark: "多组用;分隔。每组各个字段用,分隔"
        },
        {
          name: "limitShowNum",
          desc: "设置超过此数字时使用‘其他’代替	",
          type: "String",
          remark: ""
        }
      ]
    };
  },
  methods: {
    beforeConfig() {
      console.log("beforeConfig");
    },
    afterSetOption() {
      console.log("afterSetOption");
    },
    afterSetOptionOnce() {
      console.log("afterSetOptionOnce");
    }
  }
};
</script>

<style >
.borderBox {
  height: 100%;
}
.box-card {
  background-color: #333;
}
.el-card__body {
  background-color: #333;
  text-align: center;
}
.el-col {
  height: 100%;
}
.card-header {
  color: #fff;
  text-align: left;
}
.el-card__header {
  border-bottom: 1px solid #444 !important;
  background-color: #333 !important;
}
</style>